//
//  HudExtension.swift
//  Nahuo
//
//  Created by zang qilong on 2017/5/13.
//  Copyright © 2017年 zang qilong. All rights reserved.
//

import Foundation
import MBProgressHUD

extension MBProgressHUD {
    static func showTips(tip:String, view:UIView) {
        let hud = MBProgressHUD.showAdded(to: view, animated: true)
        hud.mode = .text
        hud.label.text = tip
        hud.hide(animated: true, afterDelay: 2)
    }
}
